home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 83 / MacAddict_083_2003-07.iso / pc / Software / Utilities / VirusBarrier X demo.dmg / VirusBarrier X Install.app / Contents / Resources / NetUpdate.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2003-01-10  |  896b  |  39 lines

  1. #!/bin/sh
  2.  
  3. ## Kill the NetUpdate Installer
  4.  
  5. ps -axcopid,command | grep "NetUpdate Installer" | awk '{ system("kill -9 "$1) }'
  6.  
  7. ## Kill the Application
  8.  
  9. ps -axcopid,command | grep -e 'NetUpdate$' | awk '{ system("kill -9 "$1) }'
  10.  
  11. ## remove /Library/Intego/netupdated.bundle
  12.  
  13. if [ -d /Library/Intego/netupdated.bundle ]; then
  14.     rm -r /Library/Intego/netupdated.bundle
  15. fi
  16.  
  17. ## remove /Library/StartupItems/NetUpdate
  18.  
  19. if [ -d /Library/StartupItems/NetUpdate ]; then
  20.     rm -r /Library/StartupItems/NetUpdate
  21. fi
  22.  
  23. ## remove /Library/Preferences/Intego/NetUpdate
  24.  
  25. if [ -d /Library/Preferences/Intego/NetUpdate ]; then
  26.     rm -r /Library/Preferences/Intego/NetUpdate
  27. fi
  28.  
  29. ## remove /Applications/NetUpdate.app
  30.  
  31. if [ -d /Applications/NetUpdate.app ]; then
  32.     rm -r /Applications/NetUpdate.app
  33. fi
  34.  
  35. ## remove /Library/Receipts/
  36.  
  37. if [ -d /Library/Receipts/NetUpdate.pkg ]; then
  38.     rm -r /Library/Receipts/NetUpdate.pkg
  39. fi